<div id="${id}">
    <g:form controller="grid" action="updateGrid">

        <table >

          <thead>

            <!-- Headers-->
            <tr>
              <g:each in="${cols}" var="col">
                  <th>${col.header}</th>
              </g:each>
            </tr>

            <!-- Filters-->
            <tr>
              <g:each in="${cols}" var="col">
                  <td>
                    <is:renderFilter type="${col.type}" />
                  </td>
              </g:each>
            </tr>

          </thead>

          <tbody>

            <g:each in="${resultList}" var="row">

                <tr>
                  <g:each in="${cols}" var="col">
                      <td>
                        <is:renderProperty type="${col.type}" value="${row[col.property]}" format="${col.format}" />
                      </td>
                  </g:each>
                </tr>

            </g:each>

          </tbody>
        </table>

    </g:form>

</div>